<HTML>
<HEAD>
<TITLE>DefaultProjectName - Register</TITLE>
<script type="text/javascript">
  var relPathToCommmon = "../../common/";
  var relPathToHelpDir = "../../common/help/";
</script>
<script type="text/javascript" src="../../common/jsdyn.js" language="JavaScript"></script>
<script type="text/javascript" src="../../common/js.js" language="JavaScript"></script>
<script type="text/javascript" src="leftmenu.js" language="JavaScript"></script>
<script type="text/javascript">
  var toSearchPage     = "_search','../../search";
  Body1();
</script>
<div class="headerPage">Register</div>
<div class="path"><a href="#" OnMouseOver="link('','../../index',this)" class="pathLink">OOXlib</A><img src="../../common/path-arrow.gif" class="path-arrow"><a href="#" OnMouseOver="link('_dir','include0',this)" class="pathLink">include</A><img src="../../common/path-arrow.gif" class="path-arrow"><a href="#" OnMouseOver="link('_class','CSimpleWindow4032',this)" class="pathLink">CSimpleWindow</A><img src="../../common/path-arrow.gif" class="path-arrow"><span class="pathNonLink">Register</span></div>
<script type="text/javascript">
 Body2();
 BodyLeftMenuStart();
WriteLeftMenu("","","","");
 BodyLeftMenuEnd();
 Body3();
</script>
<span class="tabInActive"><a href="#" OnMouseOver="linkTab('_member','Register2402178989','_description',this)" class="tabLinkInActive">Description</a></span>
<span class="tabActive"><a href="#" OnMouseOver="linkTab('_member','Register2402178989','_source',this)" class="tabLinkActive">Source</a></span>
<span class="tabInActive"><a href="#" OnMouseOver="linkTab('_member','Register2402178989','_callgraph',this)" class="tabLinkInActive">Call Graph</a></span>
<script type="text/javascript">
 Body4();
</script>
<div class="contentAirTop"></div>
<div class="paragraph2NoTopPadding">Start Line: 452</div>
<pre class="codeExamples">
size_t <a href="#" onMouseOver="link('_member','Register2402178989',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>size_t&nbsp;&nbsp;Register&nbsp;&nbsp;(IWindow * pWindow)',CAPTION,'<strong>Brief description</strong><BR>Registers the specified window as a child of the parent window.');" onMouseOut="return nd();">OOXlib::CSimpleWindow::Register</a>(IWindow *pWindow)
                                               {
    if(NULL == pWindow) {
        <a href="#" onMouseOver="link('_member','OOXLib_THROW3402324798',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>define&nbsp;&nbsp;OOXLib_THROW&nbsp;&nbsp;(ctor_name )',CAPTION,'<strong>Brief description</strong><BR>The main OOXlib throw replacement macro.');" onMouseOut="return nd();">OOXLib_THROW</a>(CNULLPtrIWindowException);
    }
    if(NULL == <a href="#" onMouseOver="link('_member','m_pParentWindow2399711695',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>IWindow *&nbsp;&nbsp;m_pParentWindow ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_pParentWindow</a>) {
        if(<a href="#" onMouseOver="link('_member','m_FreeIds2399711695',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::std::vector< size_t >&nbsp;&nbsp;m_FreeIds ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_FreeIds</a>.empty()) {
            <a href="#" onMouseOver="link('_member','m_Windows2399711695',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::std::vector< IWindow * >&nbsp;&nbsp;m_Windows ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_Windows</a>.push_back(pWindow);
            return <a href="#" onMouseOver="link('_member','m_Windows2399711695',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::std::vector< IWindow * >&nbsp;&nbsp;m_Windows ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_Windows</a>.size() - 1;
        } else {
            size_t id = <a href="#" onMouseOver="link('_member','m_FreeIds2399711695',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::std::vector< size_t >&nbsp;&nbsp;m_FreeIds ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_FreeIds</a>.back();
             <a href="#" onMouseOver="link('_member','m_Windows2399711695',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::std::vector< IWindow * >&nbsp;&nbsp;m_Windows ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_Windows</a>[id] = pWindow;
             <a href="#" onMouseOver="link('_member','m_FreeIds2399711695',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::std::vector< size_t >&nbsp;&nbsp;m_FreeIds ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_FreeIds</a>.pop_back();
             return id;
        }
    } else {
        return <a href="#" onMouseOver="link('_member','m_pParentWindow2399711695',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>IWindow *&nbsp;&nbsp;m_pParentWindow ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_pParentWindow</a>-&gt;Register(pWindow);
    }
}
</pre><div class="contentAirBottom"></div>
<script type="text/javascript">
 Body5();
Statistics("","","","","");
 Body6();
SetPageTab('_member','_source');
</script>
